import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import './mock/mockServer' //加载mockServer

// 引入过滤器
import filters from './Filter/filters.js'
Object.keys(filters).forEach(elem => {
  Vue.filter(elem, filters[elem])
})

// 引入bus.js
import bus from './assets/js/bus'
Vue.prototype.bus = bus;

// 添加mint-ui插件
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(MintUI)

// 添加 vant 插件
import Vant from 'vant'
import 'vant/lib/index.css'
Vue.use(Vant)


// 添加jquery插件 bootstrap插件
import $ from 'jquery'
import 'bootstrap/dist/css/bootstrap.min.css'
import 'bootstrap/dist/js/bootstrap.min'

// 安装配置 axios
import axios from 'axios'
// axios.defaults.baseURL = 'http://119.23.50.206:8686'
Vue.prototype.axios = axios

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')